package com.converter.controller;

import com.converter.bean.Dept;
import com.converter.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/live")
public class DeptController {

    @Autowired
    private DeptService deptService;

    /**
     * 查询部门列表
     * @param dept 部门信息
     * @return
     */
    @GetMapping("getDeptList")
    public List<Dept> getDeptList(Dept dept){
        List<Dept> list = deptService.selecteDeptList(new Dept());
        return list;
    }

}
